import { createSlice } from "@reduxjs/toolkit";
import dayjs from "dayjs";

export const counterSlice = createSlice({
  name: "counter",
  initialState: {
   list:['哈尔滨','草原','三亚','亲子游','西藏'],
   start:'丽江',
   end:'成都',
   date:dayjs().format('YYYY-MM-DD'),
   isSpeed:false
  },
  reducers: {
    setcity:(state,action)=>{
        state [action.payload.porpName]=action.payload.city
    }
  },
});
export const { increment, setcity, } = counterSlice.actions;

export default counterSlice.reducer;